<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%@ page import="net.lwf.web.constant.IWebConstant"%>

<%@ include file="/worksheet/common/radioChoicePickJs.jsp" %>
<logic:present name="<%=IWebConstant.BASIC_FORM_INFO %>" scope="request">
	<bean:define id="pagetitle" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="pageTitle" />
	<bean:define id="maintitle" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="mainTitle"/>
	<bean:define id="showDisplayLinks" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="showDisplayLinks"/>
	<bean:define id="displayPdfLink" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="displayPdfLink"/>
	<bean:define id="displayQuizLink" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="displayQuizLink"/>
	
	<table border="0" width="100%" bordercolor="red">
		
		<logic:notEmpty name="pagetitle">
		<tr>
			<td width="2%">&nbsp;</td>
			<td width="96%">
				<table border="0"  width="100%">
					<tr>
						<td width="35%" height="60" align="left" valign="top" class="pmtitle" nowrap><%=pagetitle %></td>
						<logic:present name="<%=IWebConstant.KNOWLEDGE_RESOURCES %>" scope="request">
						<td width="65%" >
							<%@ include file="../page/layout/concepts_media.jsp" %>	
						</td>
						</logic:present>
						<logic:notPresent name="<%=IWebConstant.KNOWLEDGE_RESOURCES %>" scope="request">
						<td width="65%" >&nbsp;</td>
						</logic:notPresent>	
					</tr>
				</table>
			</td>	
			<td width="2%">&nbsp;</td>
		</tr>		
		</logic:notEmpty>
		
		<logic:empty name="pagetitle">
		<tr>
			<td width="2%">&nbsp;</td>
			<td width="96%">
				<logic:present name="<%=IWebConstant.KNOWLEDGE_RESOURCES %>" scope="request">
					<%@ include file="../page/layout/concepts_media.jsp" %>	
				</logic:present>
			</td>
			<td width="2%">&nbsp;</td>
		</tr>
		</logic:empty>
		            
	     <tr>
	         <td colspan="3" align="center">
	            <span id="answercheckblock"></span>
	            <span id="soundPH" ></span>
	         </td>
	     </tr>
		
		<!--  This should go into a separate file as an include - start -->
		<logic:equal name="showDisplayLinks" value="true">
	     <tr>
	     	<td width="2%">&nbsp;</td>
	         <td width="96%">
	         	<table width="100%">
	          		<tr>
	         			<logic:equal name="displayPdfLink" value="true">
	         				<bean:define id="pdfLink" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="pdfLink"/>
	         			<td align="left">
	         				<table>
	         					<tr>
	         						<td class="leftlabel"> For worksheets </td>
	         						<td>&nbsp;</td>
	         						<td><img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0"> </td>
		        					<td class="leftlabel">
										<%
										String pdfurl = request.getContextPath() + "/" + pdfLink;
										%>
										Click 
										<a href="#" onclick="showPdf('<%=pdfurl%>'); return false;">
											here
										</a>                   						
		         					</td>
		         				</tr>
		         			</table>
		         		</td> 
		         		</logic:equal> 
		         		<logic:notEqual name="displayPdfLink" value="true">
		         			<td>&nbsp;</td>
		         		</logic:notEqual>
		         		
		         		<logic:equal name="displayQuizLink" value="true">
		         			<bean:define id="quizLink" name="<%=IWebConstant.BASIC_FORM_INFO %>" property="quizLink"/>
	         			<td align="right">
	         				<table>
	         					<tr>
	         						<td class="rightlabel"> To take quiz </td>
	         						<td>&nbsp;</td>
	         						<td><img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0"></td>
									<td class="rightlabel">
										Click 
										<a href="<%=request.getContextPath()%>/<%=quizLink%>">
											here
										</a>                   						
	         						</td>
	         					</tr>
	         				</table>
	         			</td>
	         			</logic:equal>
		         		<logic:notEqual name="displayQuizLink" value="true">
		         			<td>&nbsp;</td>
		         		</logic:notEqual>	         			
		        	</tr>	                     		
	        	</table>
	        </td>
	        <td width="2%">&nbsp;</td>                 
	    </tr> 
	    <tr>
	    	<td colspan="3"><hr></td>
	    </tr>
	    </logic:equal>
	</table>
</logic:present>
